<%@ Page Title="" Language="C#" MasterPageFile="~/source/masterpage/Base.Master" AutoEventWireup="true" CodeBehind="SearchProducts.aspx.cs" Inherits="QLK.Web.SearchProducts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
            text-align: left;
        }
       
        .column1Style
        {
            height:auto;
            }
            
            .column2Style
        {
            height:auto;
            }
       
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <table cellpadding="3" cellspacing="3" class="style1">
        <tr>
            <td colspan="2">
                <b>SEARCHING PRODUCTS</b></td>
        </tr>
        <tr>
            <td class="column1Style">
                ProductName:&nbsp;&nbsp;
                </td>
                <td class="column2Style">
                <asp:TextBox ID="txtProName" runat="server" CssClass="commonTexbox" ></asp:TextBox>
                <asp:ImageButton ID="ImgProName" runat="server" Height="20px" 
                    ImageUrl="~/images/Search-icon.png" Width="20px" 
                    onclick="ImgProName_Click" />
            </td>
            <td class="column1Style">
                UPC:&nbsp;&nbsp;
                </td>
                <td>
                <asp:TextBox ID="txtUPC" runat="server" CssClass="commonTexbox"  ></asp:TextBox>
               
                <asp:ImageButton ID="ImgUPC" runat="server" Height="20px" 
                    ImageUrl="~/images/Search-icon.png" Width="20px" onclick="ImgUPC_Click" />
            </td>
        </tr>
        <tr>
            <td class="column1Style">
                Categories:&nbsp;&nbsp;
                </td>
                <td class="column2Style">
                <asp:DropDownList ID="drlCateID" runat="server" CssClass="commonTexbox">
                </asp:DropDownList>
                <asp:ImageButton ID="ImgCateID" runat="server" Height="20px" 
                    ImageUrl="~/images/Search-icon.png" Width="20px" 
                    onclick="ImgCateID_Click" />
            </td>
            <td class="column1Style">
                Manufactures:&nbsp;&nbsp;
                </td>
                <td>
                <asp:DropDownList ID="drlManufacture" runat="server" CssClass="commonTexbox">
                </asp:DropDownList>
                <asp:ImageButton ID="ImgManufacture" runat="server" Height="20px" 
                    ImageUrl="~/images/Search-icon.png" Width="20px" 
                    onclick="ImgManufacture_Click" />
            </td>
        </tr>
        <tr>
            <td class="column1Style">
                Price from:</td>
                <td  colspan="2">
                   <asp:TextBox ID="txtPricefrom" runat="server" Width="100px"></asp:TextBox>
&nbsp;&nbsp; to:&nbsp;&nbsp;
                <asp:TextBox ID="txtPriceto" runat="server" Width="100px"></asp:TextBox>
&nbsp;&nbsp;
                <asp:ImageButton ID="ImgPrice" runat="server" Height="20px" 
                    ImageUrl="~/images/Search-icon.png" Width="20px" onclick="ImgPrice_Click"/></td>
                <td>
                    &nbsp;</td>
        </tr>
                
        <tr>
            <td  colspan="4">
                <asp:Label ID="lblWarning" runat="server" CssClass="msg"></asp:Label></td>
        </tr>
                
        <tr>
            <td  colspan="4">
                <asp:Button ID="btnAdd0" runat="server" onclick="btnAdd_Click" 
                    Text="Add Product(s)" CssClass="commonButton" />
            </td>
        </tr>
                
        <tr>
            <td  colspan="4">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <asp:GridView ID="grvProducts" runat="server" AutoGenerateColumns="False" 
                    AllowPaging="True" onpageindexchanging="grvProducts_PageIndexChanging" 
                        PageSize="8" style="margin-right: 0px" >
                    <Columns>
                        <asp:TemplateField HeaderText="Choose">
                            <ItemTemplate>
                                <asp:CheckBox ID="ckChoose" runat="server" 
                                    _ProID='<%# Eval(QLK.Database.Columns.ProductID) %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="UPC">
                            <ItemTemplate>
                                <asp:Label ID="lblUPC" runat="server" Text='<%# Bind("UPC") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ProductName">
                            <ItemTemplate>
                                <asp:Label ID="lblProName" runat="server" Text='<%# Bind("ProductName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="CategoryName">
                            <ItemTemplate>
                                <asp:Label ID="lblCateName" runat="server" Text='<%# Bind("CategoryName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                       <asp:TemplateField HeaderText="Manufactures">
                            <ItemTemplate>
                                <asp:Label ID="lblManufacture" runat="server" 
                                    Text='<%# Bind("ManufactureName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Prices">
                            <ItemTemplate>
                                <asp:Label ID="lblPrices" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                            </ItemTemplate>
                           
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                </ContentTemplate>
                </asp:UpdatePanel>
                </td>
        </tr>
                
        </table>
    
</asp:Content>
